<template>
  <view :class="mainClass" :style="mainStyle">
    <view
      v-if="needSymbol && position == 'before'"
      class="vin-price--symbol"
      :class="`vin-price--symbol-${size}`"
      decode="true"
    >
      {{ symbolChar }}
    </view>
    <view :class="`vin-price--${size}`">{{ formatThousands(price) }}</view>
    <view :class="`vin-price--decimal-${size}`" v-if="decimalDigits != 0">.</view>
    <view :class="`vin-price--decimal-${size}`">{{ formatDecimal(price) }}</view>
    <view
      v-if="needSymbol && position == 'after'"
      class="vin-price--symbol"
      :class="`vin-price--symbol-${size}`"
      decode="true"
    >
      {{ symbolChar }}
    </view>
  </view>
</template>
<script>import s from './index.js';export default s;</script>